<div>
    <h1 mat-dialog-title style="display:inline-block;cursor:move;" mat-dialog-draggable>关联量测属性</h1>
    <mat-icon (click)="onNoClick()" class="dialog-close-btn" cdkFocusInitial>clear</mat-icon>
    <div mat-dialog-content>
        
        <!-- <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>设备类型</span>
            <input disabled [(ngModel)]="form.entityTypeName" type="text" style="width:300px">
        </div> -->
        <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>设备</span>
            <input disabled [(ngModel)]="form.name" type="text" style="width:300px">
        </div>
        <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>量测属性</span>
            <select (change)="onMeasureChange(form.measureCode)" [disabled]="deviceMeasureList.length===0" style="width:100%" matNativeControl [(ngModel)]="form.measureCode" >
                <option *ngFor="let measure of deviceMeasureList" [value]="measure.code">
                  {{measure.name}}
                </option>
            </select>
        </div>
        <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>实时数据时间间隔(s)</span>
            <input [(ngModel)]="form.address" type="text" style="width:300px" >
        </div>
    </div>
    <div mat-dialog-actions class="dialog-action">
        <button mat-raised-button (click)="onNoClick()">{{'dlg.cancel' | translate}}</button>
        <button mat-raised-button [disabled]="!isValid(form.name)" color="primary" [mat-dialog-close]="form" cdkFocusInitial>{{'dlg.ok' | translate}}</button>
    </div>
</div>
